<?php if (!defined('THINK_PATH')) exit();?><!--<meta http-equiv="refresh" content="1"/>-->
<link href="/Public/Home/css/sane.css"  type="text/css" rel="stylesheet"/>
<script src="/Public/js/jquery-1.11.3.min.js" type="text/javascript"></script>
<link href="/Public/css/bootstrap.css"  type="text/css" rel="stylesheet"/>
<script src="/Public/js/bootstrap.js" type="text/javascript"></script>
<script src="/Public/js/layer/layer.js" type="text/javascript"></script>
<script src="/Public/Home/js/forum.js" type="text/javascript"></script>
<div class="c-main-left-content">
    <div class="con_title">
        <h3>论坛交流</h3>
    </div>
    <div class="title_tip">
        <img class="record_icon" src="/Public/img/record_01.jpg"/>
        <span class="record_news">在交谈中，判断比雄辩更重要。</span>
    </div>

    <div class="box_box">
        <div class="user_forum_left">
            <div class="user_forum_box">
                <div class="user_forum_span">
                    <span>标题：</span>
                </div>
                <?php if($_getBookAlianceById['feel_title'] == 1): ?><input type="text" value="书籍" readonly=""><?php endif; ?>
                <?php if($_getBookAlianceById['feel_title'] == 2): ?><input type="text" value="文章" readonly=""><?php endif; ?>
                <?php if($_getBookAlianceById['feel_title'] == 3): ?><input type="text" value="段落" readonly=""><?php endif; ?>
            </div>
            <div class="user_forum_box">
                <div class="user_forum_span">
                    <span>发表者名称：</span>
                </div>
                <?php if(is_array($_getAllUserInfo)): $i = 0; $__LIST__ = $_getAllUserInfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; if($_getBookAlianceById['u_id'] == $vo['u_id']): ?><input type="text" value="<?php echo ($vo['u_name']); ?>" readonly=""><?php endif; endforeach; endif; else: echo "" ;endif; ?>
            </div>
            <div class="user_forum_box">
                <div class="user_forum_span">
                    <span>发表时间：</span>
                </div>
                <input type="text" value="<?php echo (date('Y-m-d H:i:s',$_getBookAlianceById['feel_time'])); ?>">
            </div>
            <?php if($_getBookAlianceById['feel_title'] == 1): ?><div class="user_forum_box">
                    <div class="user_forum_span">
                        <span>书籍名称：</span>
                    </div>
                    <input type="text" value="<?php echo ($_getBookAlianceById['book_name']); ?>">
                </div>
                <?php if($_getBookAlianceById['book_page'] != null): ?><div class="user_forum_box">
                        <div class="user_forum_span">
                            <span>书签页数：</span>
                        </div>
                        <input type="text" value="<?php echo ($_getBookAlianceById['book_page']); ?>">
                    </div><?php endif; endif; ?>
            <?php if($_getBookAlianceById['feel_title'] == 2): ?><div class="user_forum_box">
                    <div class="user_forum_span">
                        <span>文章名称：</span>
                    </div>
                    <input type="text" value="<?php echo ($_getBookAlianceById['article_name']); ?>">
                </div><?php endif; ?>
            <div class="user_forum_box">
                <div class="user_forum_span">
                    <span>简介：</span>
                </div>
                <input type="text" value="<?php echo ($_getBookAlianceById['feel_intor']); ?>">
            </div>
            <div class="user_forum_box">
                <textarea cols="45" rows="10" readonly="">&nbsp;&nbsp;&nbsp;&nbsp;<?php echo ($_getBookAlianceById['feel_content']); ?></textarea>
            </div>
        </div>
        <div class="user_forum_right">
            <div class="user_span_right">
                <span>讨论区</span>
            </div>
            <div class="user_text">
                <?php if(is_array($_getByIdInfo)): $i = 0; $__LIST__ = $_getByIdInfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$zo): $mod = ($i % 2 );++$i;?><div class="user_box_text">
                      <div class="user_text_span">
                          <img src="/Public/Admin/img/icon_menu_info.png">
                        <span>
                            <?php if(is_array($_getAllUserInfo)): $i = 0; $__LIST__ = $_getAllUserInfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$so): $mod = ($i % 2 );++$i; if($zo['u_id'] == $so['u_id']): echo ($so['u_name']); endif; endforeach; endif; else: echo "" ;endif; ?>
                        </span>
                          <span><?php echo (date('Y-m-d H:i:s',$zo['forum_time'])); ?></span>
                          <?php if(getUserId() == $zo['u_id']): ?><button type="button" class="del" data-del-id="<?php echo ($zo['forum_id']); ?>">删除</button>
                              <input type="hidden" value="<?php echo U('Home/BookAliance/forumDel');?>" id="del-url"><?php endif; ?>
                      </div>
                      <div class="text_content">
                            <?php echo ($zo['forum_content']); ?>
                      </div>
                  </div><?php endforeach; endif; else: echo "" ;endif; ?>
            </div>
            <div class="user_shuru">
                <input type="text" name="forum_content" id="forum_content">
            </div>
            <div class="user_shuru1">
                <input type="button" class="add" value="提&nbsp;交" data-id="<?php echo ($_getBookAlianceById['feel_id']); ?>">
                <input type="hidden" value="<?php echo U('Home/BookAliance/forumChat');?>" id="forum-url">
            </div>
        </div>

    </div>
</div>